package com.gj.config;

import com.gj.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@ComponentScan("com.gj")
public class Mainconfig {
    @Bean
    public Person person(){
        return new Person("zhangsan",12);
    }
}
